/**
 * ...
 * @author Thot
 */

function StartApplicationCommand(){}; 
POO.extend( StartApplicationCommand, Command );



StartApplicationCommand.prototype.execute = function( p_notificationType, p_data )
{
	var menumediator 	= new ActionMenuMediator(document.getElementById("topMenu"));
	var mapmediator 	= new MapMediator(document.getElementById("uiContainer"));
	var laymediator 	= new LayersMediator(document.getElementById("layersWindow"));
	var maplaymediator 	= new MapLayersMediator(document.getElementById("mapsWindow"));
	var libmediator 	= new LibraryMediator(document.getElementById("libraryWindow"));
	var appproxy 		= new ApplicationProxy();
	var texproxy		= new TextureProxy();
	var animProxy		= new AnimationProxy();
	var mapProxy		= new MapProxy();
	
	ApplicationFacade.getInstance().registerMediator( ActionMenuMediator.NAME, menumediator );
	ApplicationFacade.getInstance().registerMediator( MapMediator.NAME, mapmediator );
	ApplicationFacade.getInstance().registerMediator( MapLayersMediator.NAME, maplaymediator );
	ApplicationFacade.getInstance().registerMediator( LayersMediator.NAME, laymediator );
	ApplicationFacade.getInstance().registerMediator( LibraryMediator.NAME, libmediator );
	ApplicationFacade.getInstance().registerProxy( AnimationProxy.NAME, animProxy );
	ApplicationFacade.getInstance().registerProxy( TextureProxy.NAME, texproxy );
	ApplicationFacade.getInstance().registerProxy( ApplicationProxy.NAME, appproxy );
	ApplicationFacade.getInstance().registerProxy( MapProxy.NAME, mapProxy );
	
	
	ApplicationFacade.getInstance().sendNotification( ApplicationNotification.LOAD_PROJECT, './assets/projects/default.js' );
	
};